﻿namespace ACCOUNTING
{
    using ACCOUNTING.LVY.Business;
    using ACCOUNTING.My;
    using ACCOUNTING.My.Resources;
    using C1.Win.C1Command;
    using C1.Win.C1FlexGrid;
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Diagnostics;
    using System.Drawing;
    using System.Runtime.CompilerServices;
    using System.Windows.Forms;

    [DesignerGenerated]
    public class Frm_DMLoaiKhachHang : Form
    {
        private static List<WeakReference> __ENCList = new List<WeakReference>();
        [AccessedThroughProperty("C1DockingTab1")]
        private C1DockingTab _C1DockingTab1;
        [AccessedThroughProperty("C1DockingTab2")]
        private C1DockingTab _C1DockingTab2;
        [AccessedThroughProperty("C1DockingTabPage1")]
        private C1DockingTabPage _C1DockingTabPage1;
        [AccessedThroughProperty("C1DockingTabPage2")]
        private C1DockingTabPage _C1DockingTabPage2;
        [AccessedThroughProperty("CKActive")]
        private CheckBox _CKActive;
        [AccessedThroughProperty("CmdAdd")]
        private ToolStripButton _CmdAdd;
        [AccessedThroughProperty("CmdDel")]
        private ToolStripButton _CmdDel;
        [AccessedThroughProperty("CmdEdit")]
        private ToolStripButton _CmdEdit;
        [AccessedThroughProperty("CmdExit")]
        private ToolStripButton _CmdExit;
        [AccessedThroughProperty("CmdFind")]
        private ToolStripButton _CmdFind;
        [AccessedThroughProperty("CmdHelp")]
        private ToolStripButton _CmdHelp;
        [AccessedThroughProperty("CmdPrint")]
        private ToolStripButton _CmdPrint;
        [AccessedThroughProperty("CmdSave")]
        private ToolStripButton _CmdSave;
        [AccessedThroughProperty("CmdUnsave")]
        private ToolStripButton _CmdUnsave;
        [AccessedThroughProperty("Label1")]
        private Label _Label1;
        [AccessedThroughProperty("Label2")]
        private Label _Label2;
        [AccessedThroughProperty("Label3")]
        private Label _Label3;
        [AccessedThroughProperty("Label4")]
        private Label _Label4;
        [AccessedThroughProperty("Label7")]
        private Label _Label7;
        [AccessedThroughProperty("Label8")]
        private Label _Label8;
        [AccessedThroughProperty("Panel1")]
        private Panel _Panel1;
        [AccessedThroughProperty("ToolStrip1")]
        private ToolStrip _ToolStrip1;
        [AccessedThroughProperty("ToolStripButton1")]
        private ToolStripSeparator _ToolStripButton1;
        [AccessedThroughProperty("ToolStripSeparator1")]
        private ToolStripSeparator _ToolStripSeparator1;
        [AccessedThroughProperty("ToolStripSeparator2")]
        private ToolStripSeparator _ToolStripSeparator2;
        [AccessedThroughProperty("ToolStripSeparator3")]
        private ToolStripSeparator _ToolStripSeparator3;
        [AccessedThroughProperty("TxtDienGiai")]
        private TextBox _TxtDienGiai;
        [AccessedThroughProperty("TxtMa")]
        private TextBox _TxtMa;
        [AccessedThroughProperty("TxtSearchCode")]
        private TextBox _TxtSearchCode;
        [AccessedThroughProperty("TxtSearchName")]
        private TextBox _TxtSearchName;
        [AccessedThroughProperty("TxtTenAnh")]
        private TextBox _TxtTenAnh;
        [AccessedThroughProperty("TxtTenViet")]
        private TextBox _TxtTenViet;
        [AccessedThroughProperty("VSList")]
        private C1.Win.C1FlexGrid.C1FlexGrid _VSList;
        private DataView cFrmData;
        private string cFrmKhoa;
        private string cFrmKhoaOld;
        private string cFrmTask;
        private IContainer components;
        private bool mAllowAdd;
        private bool mAllowDel;
        private bool mAllowEdit;
        private bool mAllowView;
        private bool mEnableControl;
        private clsDMLoaiKhachHang objDMLoaiKH;
        private ComponentResourceManager manager;
        

        public Frm_DMLoaiKhachHang()
        {
            base.KeyDown += new KeyEventHandler(this.Frm_DMLoaiKhachHang_KeyDown);
            base.Load += new EventHandler(this.Frm_DMLoaiKhachHang_Load);
            List<WeakReference> list = __ENCList;
            lock (list)
            {
                __ENCList.Add(new WeakReference(this));
            }
            this.cFrmKhoaOld = "";
            this.cFrmKhoa = "";
            this.cFrmTask = "";
            this.objDMLoaiKH = new clsDMLoaiKhachHang();
            this.InitializeComponent();
        }

        public bool CheckIvalid()
        {
            if (this.TxtMa.Text.Trim() == "")
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập m\x00e3!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if (this.objDMLoaiKH.TrungMa(this.TxtMa.Text.Trim(), this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("M\x00e3 n\x00e0y đ\x00e3 tồn tại, bạn phải nhập m\x00e3 kh\x00e1c!", ""));
                this.TxtMa.Focus();
                return false;
            }
            if ((this.TxtTenViet.Text.Trim() == "") & (this.TxtTenAnh.Text.Trim() == ""))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn phải nhập t\x00ean!", ""));
                this.TxtTenViet.Focus();
                return false;
            }
            return true;
        }

        private void CmdAdd_Click(object sender, EventArgs e)
        {
            this.EmptyData();
            this.EnableControl = true;
        }

        private void CmdDel_Click(object sender, EventArgs e)
        {
            if (this.objDMLoaiKH.WasUsed(this.cFrmKhoa))
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Th\x00f4ng tin n\x00e0y đ\x00e3 được sử dụng, bạn kh\x00f4ng thể x\x00f3a!", ""));
            }
            else if (LVYModule.ConfirmDelete("") && this.objDMLoaiKH.DelData(this.cFrmKhoa))
            {
                this.VSList.RemoveItem(this.VSList.Row);
                this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
            }
        }

        private void CmdEdit_Click(object sender, EventArgs e)
        {
            if (((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0)) && (this.cFrmKhoa.Trim() != ""))
            {
                this.EnableControl = true;
                this.cFrmTask = "U";
            }
        }

        private void CmdExit_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void CmdHelp_Click(object sender, EventArgs e)
        {
            LVYModule.ShowHelp(@"DANHMUCDUNGCHUNG\DANHMUC\LOAIKHACHHANG.mht");
        }

        private void CmdPrint_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            DataTable dataTable = this.objDMLoaiKH.ShowListByField("Khoa|Ma|TenViet|TenAnh|DienGiai", "", " Ma, TenViet");
            Rpt_DMQuocGia gia = new Rpt_DMQuocGia();
            try
            {
                gia.SetDataSource(dataTable);
                if (modGeneral.H_LANGUAGE == "VIET")
                {
                    gia.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEVIET, ""));
                }
                else
                {
                    gia.SetParameterValue(0, modGeneral.Tranlated(modGeneral.H_COMPANYNAMEANH, ""));
                }
                gia.SetParameterValue(1, modGeneral.Tranlated("Địa chỉ", "") + ": " + modGeneral.H_ADDRESS);
                gia.SetParameterValue(2, modGeneral.Tranlated("M\x00e3 số thuế", "") + ": " + modGeneral.H_TAXCODE);
                gia.SetParameterValue(3, modGeneral.Tranlated("Điện thoại", "") + ": " + modGeneral.H_TELEPHONE);
                gia.SetParameterValue(4, modGeneral.Tranlated("Fax", "") + ": " + modGeneral.H_FAX);
                gia.SetParameterValue(5, modGeneral.Tranlated("DANH MỤC LOẠI KH\x00c1CH H\x00c0NG", ""));
                gia.SetParameterValue(6, modGeneral.Tranlated("STT", ""));
                gia.SetParameterValue(7, modGeneral.Tranlated("M\x00e3", ""));
                gia.SetParameterValue(8, modGeneral.Tranlated("T\x00ean (Tiếng Việt)", ""));
                gia.SetParameterValue(9, modGeneral.Tranlated("T\x00ean (Tiếng Anh)", ""));
                gia.SetParameterValue(10, modGeneral.Tranlated("Diễn giải", ""));
                gia.SetParameterValue(11, modGeneral.Tranlated("Ng\x00e0y .... th\x00e1ng .... năm ............", ""));
                gia.SetParameterValue(12, modGeneral.Tranlated("NGƯỜI LẬP", ""));
                MyProject.Forms.Frm_ViewReport.ReportViewer.ReportSource = gia;
                MyProject.Forms.Frm_ViewReport.ReportViewer.DisplayGroupTree = false;
                this.Cursor = Cursors.Default;
                MyProject.Forms.Frm_ViewReport.ShowDialog();
            }
            catch (Exception exception1)
            {
                ProjectData.SetProjectError(exception1);
                Exception exception = exception1;
                MessageBox.Show(exception.Message.ToString());
                ProjectData.ClearProjectError();
            }
        }

        private void CmdSave_Click(object sender, EventArgs e)
        {
            if (this.CheckIvalid())
            {
                clsDMLoaiKhachHang objDMLoaiKH = this.objDMLoaiKH;
                objDMLoaiKH.Khoa = this.cFrmKhoa;
                objDMLoaiKH.Ma = this.TxtMa.Text;
                objDMLoaiKH.TenViet = this.TxtTenViet.Text;
                objDMLoaiKH.TenAnh = this.TxtTenAnh.Text;
                objDMLoaiKH.DienGiai = this.TxtDienGiai.Text;
                if (this.CKActive.CheckState == CheckState.Checked)
                {
                    objDMLoaiKH.Active = 1;
                }
                else
                {
                    objDMLoaiKH.Active = 0;
                }
                if (objDMLoaiKH.Save(this.cFrmTask))
                {
                    objDMLoaiKH = null;
                    this.EnableControl = false;
                    this.VSList_RowColChange(RuntimeHelpers.GetObjectValue(sender), e);
                    this.LoadData();
                }
            }
        }

        private void CmdUnsave_Click(object sender, EventArgs e)
        {
            if (this.cFrmTask == "U")
            {
                this.ShowData(this.cFrmKhoa);
            }
            else if (this.cFrmKhoaOld != "")
            {
                this.cFrmKhoa = this.cFrmKhoaOld;
                this.ShowData(this.cFrmKhoa);
            }
            else
            {
                this.EmptyData();
            }
            this.EnableControl = false;
        }

        [DebuggerNonUserCode]
        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        public void EmptyData()
        {
            if (this.cFrmKhoa.Trim() != "")
            {
                this.cFrmKhoaOld = this.cFrmKhoa;
            }
            this.cFrmKhoa = modGeneral.CreatKey("DM_LoaiKhachHang", 10, "");
            this.cFrmTask = "I";
            this.TxtMa.Text = "";
            this.TxtTenViet.Text = "";
            this.TxtTenAnh.Text = "";
            this.TxtDienGiai.Text = "";
            this.TxtMa.Focus();
        }

        private void Frm_DMLoaiKhachHang_KeyDown(object sender, KeyEventArgs e)
        {
        }

        private void Frm_DMLoaiKhachHang_Load(object sender, EventArgs e)
        {
            LVYModule.GetUserRight(ref this.mAllowView, ref this.mAllowDel, ref this.mAllowEdit, ref this.mAllowAdd, Conversions.ToString(this.Tag), modGeneral.H_USERNAME);
            if (!this.mAllowView)
            {
                LVYModule.ShowWarning(modGeneral.Tranlated("Bạn kh\x00f4ng c\x00f3 quyền xem, li\x00ean hệ với người quản trị để biết th\x00eam chi tiết.", ""));
                this.Dispose();
            }
            else
            {
                this.EnableControl = false;
                this.SetLanguage();
                this.SetEvents();
                this.LoadData();
            }
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Frm_DMLoaiKhachHang));
            this._VSList = new C1.Win.C1FlexGrid.C1FlexGrid();
            this._Panel1 = new System.Windows.Forms.Panel();
            this._Label8 = new System.Windows.Forms.Label();
            this._Label7 = new System.Windows.Forms.Label();
            this._TxtSearchName = new System.Windows.Forms.TextBox();
            this._TxtSearchCode = new System.Windows.Forms.TextBox();
            this._CKActive = new System.Windows.Forms.CheckBox();
            this._Label4 = new System.Windows.Forms.Label();
            this._TxtDienGiai = new System.Windows.Forms.TextBox();
            this._Label3 = new System.Windows.Forms.Label();
            this._TxtTenAnh = new System.Windows.Forms.TextBox();
            this._Label2 = new System.Windows.Forms.Label();
            this._TxtTenViet = new System.Windows.Forms.TextBox();
            this._ToolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this._ToolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this._ToolStripButton1 = new System.Windows.Forms.ToolStripSeparator();
            this._Label1 = new System.Windows.Forms.Label();
            this._TxtMa = new System.Windows.Forms.TextBox();
            this._ToolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this._ToolStrip1 = new System.Windows.Forms.ToolStrip();
            this._CmdAdd = new System.Windows.Forms.ToolStripButton();
            this._CmdEdit = new System.Windows.Forms.ToolStripButton();
            this._CmdSave = new System.Windows.Forms.ToolStripButton();
            this._CmdUnsave = new System.Windows.Forms.ToolStripButton();
            this._CmdFind = new System.Windows.Forms.ToolStripButton();
            this._CmdPrint = new System.Windows.Forms.ToolStripButton();
            this._CmdDel = new System.Windows.Forms.ToolStripButton();
            this._CmdHelp = new System.Windows.Forms.ToolStripButton();
            this._CmdExit = new System.Windows.Forms.ToolStripButton();
            this._C1DockingTab1 = new C1.Win.C1Command.C1DockingTab();
            this._C1DockingTabPage1 = new C1.Win.C1Command.C1DockingTabPage();
            this._C1DockingTab2 = new C1.Win.C1Command.C1DockingTab();
            this._C1DockingTabPage2 = new C1.Win.C1Command.C1DockingTabPage();
            ((System.ComponentModel.ISupportInitialize)(this._VSList)).BeginInit();
            this._Panel1.SuspendLayout();
            this._ToolStrip1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this._C1DockingTab1)).BeginInit();
            this._C1DockingTab1.SuspendLayout();
            this._C1DockingTabPage1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this._C1DockingTab2)).BeginInit();
            this._C1DockingTab2.SuspendLayout();
            this._C1DockingTabPage2.SuspendLayout();
            this.SuspendLayout();
            // 
            // _VSList
            // 
            this._VSList.AllowEditing = false;
            this._VSList.AutoResize = false;
            this._VSList.ColumnInfo = "3,0,0,0,0,85,Columns:0{Caption:\"Khóa\";Visible:False;}\t1{Caption:\"Mã\";}\t2{Caption:" +
                "\"Tên\";}\t";
            this._VSList.Dock = System.Windows.Forms.DockStyle.Fill;
            this._VSList.ExtendLastCol = true;
            this._VSList.FocusRect = C1.Win.C1FlexGrid.FocusRectEnum.None;
            this._VSList.Location = new System.Drawing.Point(0, 0);
            this._VSList.Name = "_VSList";
            this._VSList.Rows.Count = 1;
            this._VSList.Rows.DefaultSize = 17;
            this._VSList.SelectionMode = C1.Win.C1FlexGrid.SelectionModeEnum.Row;
            this._VSList.Size = new System.Drawing.Size(293, 375);
            this._VSList.StyleInfo = resources.GetString("_VSList.StyleInfo");
            this._VSList.TabIndex = 0;
            this._VSList.VisualStyle = C1.Win.C1FlexGrid.VisualStyle.Office2007Blue;
            // 
            // _Panel1
            // 
            this._Panel1.BackColor = System.Drawing.Color.Transparent;
            this._Panel1.Controls.Add(this._Label8);
            this._Panel1.Controls.Add(this._Label7);
            this._Panel1.Controls.Add(this._TxtSearchName);
            this._Panel1.Controls.Add(this._TxtSearchCode);
            this._Panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
            this._Panel1.Location = new System.Drawing.Point(0, 375);
            this._Panel1.Name = "_Panel1";
            this._Panel1.Size = new System.Drawing.Size(293, 43);
            this._Panel1.TabIndex = 1;
            // 
            // _Label8
            // 
            this._Label8.AutoSize = true;
            this._Label8.Location = new System.Drawing.Point(93, 26);
            this._Label8.Name = "_Label8";
            this._Label8.Size = new System.Drawing.Size(42, 13);
            this._Label8.TabIndex = 19;
            this._Label8.Text = "Tìm tên";
            // 
            // _Label7
            // 
            this._Label7.AutoSize = true;
            this._Label7.Location = new System.Drawing.Point(-1, 26);
            this._Label7.Name = "_Label7";
            this._Label7.Size = new System.Drawing.Size(41, 13);
            this._Label7.TabIndex = 18;
            this._Label7.Text = "Tìm mã";
            // 
            // _TxtSearchName
            // 
            this._TxtSearchName.Location = new System.Drawing.Point(90, 3);
            this._TxtSearchName.Name = "_TxtSearchName";
            this._TxtSearchName.Size = new System.Drawing.Size(210, 20);
            this._TxtSearchName.TabIndex = 1;
            // 
            // _TxtSearchCode
            // 
            this._TxtSearchCode.Location = new System.Drawing.Point(2, 3);
            this._TxtSearchCode.Name = "_TxtSearchCode";
            this._TxtSearchCode.Size = new System.Drawing.Size(82, 20);
            this._TxtSearchCode.TabIndex = 0;
            // 
            // _CKActive
            // 
            this._CKActive.AutoSize = true;
            this._CKActive.BackColor = System.Drawing.Color.Transparent;
            this._CKActive.Checked = true;
            this._CKActive.CheckState = System.Windows.Forms.CheckState.Checked;
            this._CKActive.Location = new System.Drawing.Point(115, 120);
            this._CKActive.Name = "_CKActive";
            this._CKActive.Size = new System.Drawing.Size(66, 17);
            this._CKActive.TabIndex = 4;
            this._CKActive.Text = "Sử dụng";
            this._CKActive.UseVisualStyleBackColor = false;
            // 
            // _Label4
            // 
            this._Label4.AutoSize = true;
            this._Label4.BackColor = System.Drawing.Color.Transparent;
            this._Label4.Location = new System.Drawing.Point(14, 95);
            this._Label4.Name = "_Label4";
            this._Label4.Size = new System.Drawing.Size(48, 13);
            this._Label4.TabIndex = 23;
            this._Label4.Text = "Diễn giải";
            // 
            // _TxtDienGiai
            // 
            this._TxtDienGiai.Location = new System.Drawing.Point(115, 92);
            this._TxtDienGiai.Name = "_TxtDienGiai";
            this._TxtDienGiai.Size = new System.Drawing.Size(260, 20);
            this._TxtDienGiai.TabIndex = 3;
            // 
            // _Label3
            // 
            this._Label3.AutoSize = true;
            this._Label3.BackColor = System.Drawing.Color.Transparent;
            this._Label3.Location = new System.Drawing.Point(13, 70);
            this._Label3.Name = "_Label3";
            this._Label3.Size = new System.Drawing.Size(84, 13);
            this._Label3.TabIndex = 21;
            this._Label3.Text = "Tên (Tiếng Anh)";
            // 
            // _TxtTenAnh
            // 
            this._TxtTenAnh.Location = new System.Drawing.Point(115, 67);
            this._TxtTenAnh.Name = "_TxtTenAnh";
            this._TxtTenAnh.Size = new System.Drawing.Size(260, 20);
            this._TxtTenAnh.TabIndex = 2;
            // 
            // _Label2
            // 
            this._Label2.AutoSize = true;
            this._Label2.BackColor = System.Drawing.Color.Transparent;
            this._Label2.Location = new System.Drawing.Point(13, 46);
            this._Label2.Name = "_Label2";
            this._Label2.Size = new System.Drawing.Size(83, 13);
            this._Label2.TabIndex = 19;
            this._Label2.Text = "Tên (Tiếng Việt)";
            // 
            // _TxtTenViet
            // 
            this._TxtTenViet.Location = new System.Drawing.Point(115, 43);
            this._TxtTenViet.Name = "_TxtTenViet";
            this._TxtTenViet.Size = new System.Drawing.Size(260, 20);
            this._TxtTenViet.TabIndex = 1;
            // 
            // _ToolStripSeparator2
            // 
            this._ToolStripSeparator2.Name = "_ToolStripSeparator2";
            this._ToolStripSeparator2.Size = new System.Drawing.Size(6, 25);
            // 
            // _ToolStripSeparator1
            // 
            this._ToolStripSeparator1.Name = "_ToolStripSeparator1";
            this._ToolStripSeparator1.Size = new System.Drawing.Size(6, 25);
            // 
            // _ToolStripButton1
            // 
            this._ToolStripButton1.Name = "_ToolStripButton1";
            this._ToolStripButton1.Size = new System.Drawing.Size(6, 25);
            // 
            // _Label1
            // 
            this._Label1.AutoSize = true;
            this._Label1.BackColor = System.Drawing.Color.Transparent;
            this._Label1.Location = new System.Drawing.Point(13, 24);
            this._Label1.Name = "_Label1";
            this._Label1.Size = new System.Drawing.Size(25, 13);
            this._Label1.TabIndex = 17;
            this._Label1.Text = "Mã ";
            // 
            // _TxtMa
            // 
            this._TxtMa.Location = new System.Drawing.Point(115, 19);
            this._TxtMa.Name = "_TxtMa";
            this._TxtMa.Size = new System.Drawing.Size(124, 20);
            this._TxtMa.TabIndex = 0;
            // 
            // _ToolStripSeparator3
            // 
            this._ToolStripSeparator3.Name = "_ToolStripSeparator3";
            this._ToolStripSeparator3.Size = new System.Drawing.Size(6, 25);
            // 
            // _ToolStrip1
            // 
            this._ToolStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this._CmdAdd,
            this._CmdEdit,
            this._ToolStripSeparator2,
            this._CmdSave,
            this._CmdUnsave,
            this._ToolStripSeparator1,
            this._CmdFind,
            this._CmdPrint,
            this._ToolStripButton1,
            this._CmdDel,
            this._CmdHelp,
            this._ToolStripSeparator3,
            this._CmdExit});
            this._ToolStrip1.Location = new System.Drawing.Point(0, 0);
            this._ToolStrip1.Name = "_ToolStrip1";
            this._ToolStrip1.Size = new System.Drawing.Size(694, 25);
            this._ToolStrip1.TabIndex = 25;
            this._ToolStrip1.Text = "ToolStrip1";
            // 
            // _CmdAdd
            // 
            this._CmdAdd.Image = ((System.Drawing.Image)(resources.GetObject("_CmdAdd.Image")));
            this._CmdAdd.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdAdd.Name = "_CmdAdd";
            this._CmdAdd.Size = new System.Drawing.Size(82, 22);
            this._CmdAdd.Text = "&Thêm mới";           
            // 
            // _CmdEdit
            // 
            this._CmdEdit.Image = ((System.Drawing.Image)(resources.GetObject("_CmdEdit.Image")));
            this._CmdEdit.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdEdit.Name = "_CmdEdit";
            this._CmdEdit.Size = new System.Drawing.Size(46, 22);
            this._CmdEdit.Text = "&Sửa";
            // 
            // _CmdSave
            // 
            this._CmdSave.Image = ((System.Drawing.Image)(resources.GetObject("_CmdSave.Image")));
            this._CmdSave.ImageTransparentColor = System.Drawing.Color.WhiteSmoke;
            this._CmdSave.Name = "_CmdSave";
            this._CmdSave.Size = new System.Drawing.Size(47, 22);
            this._CmdSave.Text = "&Lưu";
            // 
            // _CmdUnsave
            // 
            this._CmdUnsave.Image = ((System.Drawing.Image)(resources.GetObject("_CmdUnsave.Image")));
            this._CmdUnsave.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdUnsave.Name = "_CmdUnsave";
            this._CmdUnsave.Size = new System.Drawing.Size(57, 22);
            this._CmdUnsave.Text = "&K.Lưu";
            // 
            // _CmdFind
            // 
            this._CmdFind.Image = ((System.Drawing.Image)(resources.GetObject("_CmdFind.Image")));
            this._CmdFind.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdFind.Name = "_CmdFind";
            this._CmdFind.Size = new System.Drawing.Size(77, 22);
            this._CmdFind.Text = "Tìm kiếm";
            this._CmdFind.Visible = false;
            // 
            // _CmdPrint
            // 
            this._CmdPrint.Image = ((System.Drawing.Image)(resources.GetObject("_CmdPrint.Image")));
            this._CmdPrint.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdPrint.Name = "_CmdPrint";
            this._CmdPrint.Size = new System.Drawing.Size(37, 22);
            this._CmdPrint.Text = "&In";
            // 
            // _CmdDel
            // 
            this._CmdDel.Image = ((System.Drawing.Image)(resources.GetObject("_CmdDel.Image")));
            this._CmdDel.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdDel.Name = "_CmdDel";
            this._CmdDel.Size = new System.Drawing.Size(47, 22);
            this._CmdDel.Text = "&Xóa";
            // 
            // _CmdHelp
            // 
            this._CmdHelp.Image = ((System.Drawing.Image)(resources.GetObject("_CmdHelp.Image")));
            this._CmdHelp.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdHelp.Name = "_CmdHelp";
            this._CmdHelp.Size = new System.Drawing.Size(72, 22);
            this._CmdHelp.Text = "Trợ giúp";
            // 
            // _CmdExit
            // 
            this._CmdExit.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this._CmdExit.Image = ((System.Drawing.Image)(resources.GetObject("_CmdExit.Image")));
            this._CmdExit.ImageTransparentColor = System.Drawing.Color.White;
            this._CmdExit.Name = "_CmdExit";
            this._CmdExit.Size = new System.Drawing.Size(58, 22);
            this._CmdExit.Text = "Th&oát";
            // 
            // _C1DockingTab1
            // 
            this._C1DockingTab1.Controls.Add(this._C1DockingTabPage1);
            this._C1DockingTab1.Dock = System.Windows.Forms.DockStyle.Left;
            this._C1DockingTab1.Location = new System.Drawing.Point(0, 25);
            this._C1DockingTab1.Name = "_C1DockingTab1";
            this._C1DockingTab1.Size = new System.Drawing.Size(295, 443);
            this._C1DockingTab1.TabIndex = 24;
            this._C1DockingTab1.TabsSpacing = 5;
            this._C1DockingTab1.TabStyle = C1.Win.C1Command.TabStyleEnum.Office2007;
            this._C1DockingTab1.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this._C1DockingTab1.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            // 
            // _C1DockingTabPage1
            // 
            this._C1DockingTabPage1.Controls.Add(this._VSList);
            this._C1DockingTabPage1.Controls.Add(this._Panel1);
            this._C1DockingTabPage1.Location = new System.Drawing.Point(1, 24);
            this._C1DockingTabPage1.Name = "_C1DockingTabPage1";
            this._C1DockingTabPage1.Size = new System.Drawing.Size(293, 418);
            this._C1DockingTabPage1.TabIndex = 0;
            this._C1DockingTabPage1.Text = "Danh sách loại khách hàng";
            // 
            // _C1DockingTab2
            // 
            this._C1DockingTab2.Controls.Add(this._C1DockingTabPage2);
            this._C1DockingTab2.Dock = System.Windows.Forms.DockStyle.Fill;
            this._C1DockingTab2.Location = new System.Drawing.Point(295, 25);
            this._C1DockingTab2.Name = "_C1DockingTab2";
            this._C1DockingTab2.Size = new System.Drawing.Size(399, 443);
            this._C1DockingTab2.TabIndex = 24;
            this._C1DockingTab2.TabsSpacing = 5;
            this._C1DockingTab2.TabStyle = C1.Win.C1Command.TabStyleEnum.Office2007;
            this._C1DockingTab2.VisualStyle = C1.Win.C1Command.VisualStyle.Office2007Blue;
            this._C1DockingTab2.VisualStyleBase = C1.Win.C1Command.VisualStyle.Office2007Blue;
            // 
            // _C1DockingTabPage2
            // 
            this._C1DockingTabPage2.Controls.Add(this._TxtMa);
            this._C1DockingTabPage2.Controls.Add(this._CKActive);
            this._C1DockingTabPage2.Controls.Add(this._Label1);
            this._C1DockingTabPage2.Controls.Add(this._Label4);
            this._C1DockingTabPage2.Controls.Add(this._TxtTenViet);
            this._C1DockingTabPage2.Controls.Add(this._TxtDienGiai);
            this._C1DockingTabPage2.Controls.Add(this._Label2);
            this._C1DockingTabPage2.Controls.Add(this._Label3);
            this._C1DockingTabPage2.Controls.Add(this._TxtTenAnh);
            this._C1DockingTabPage2.Location = new System.Drawing.Point(1, 24);
            this._C1DockingTabPage2.Name = "_C1DockingTabPage2";
            this._C1DockingTabPage2.Size = new System.Drawing.Size(397, 418);
            this._C1DockingTabPage2.TabIndex = 0;
            this._C1DockingTabPage2.Text = "Thông tin chi tiết";
            // 
            // Frm_DMLoaiKhachHang
            // 
            this.ClientSize = new System.Drawing.Size(694, 468);
            this.ControlBox = false;
            this.Controls.Add(this._C1DockingTab2);
            this.Controls.Add(this._C1DockingTab1);
            this.Controls.Add(this._ToolStrip1);
            this.KeyPreview = true;
            this.Name = "Frm_DMLoaiKhachHang";
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Tag = "DM-0022             ";
            this.Text = "DANH MUC LOAI KHACH HANG";
            ((System.ComponentModel.ISupportInitialize)(this._VSList)).EndInit();
            this._Panel1.ResumeLayout(false);
            this._Panel1.PerformLayout();
            this._ToolStrip1.ResumeLayout(false);
            this._ToolStrip1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this._C1DockingTab1)).EndInit();
            this._C1DockingTab1.ResumeLayout(false);
            this._C1DockingTabPage1.ResumeLayout(false);
            ((System.ComponentModel.ISupportInitialize)(this._C1DockingTab2)).EndInit();
            this._C1DockingTab2.ResumeLayout(false);
            this._C1DockingTabPage2.ResumeLayout(false);
            this._C1DockingTabPage2.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        public void LoadData()
        {
            this.cFrmData = new DataView(this.objDMLoaiKH.ShowAllList());
            this.VSList.DataSource = this.cFrmData;
            C1.Win.C1FlexGrid.C1FlexGrid vSList = this.VSList;
            vSList.Cols[0].Visible = false;
            vSList.Cols[1].Width = 80;
            vSList[0, 1] = modGeneral.Tranlated("M\x00e3", "");
            vSList[0, 2] = modGeneral.Tranlated("T\x00ean loại kh\x00e1ch h\x00e0ng", "");
            vSList = null;
        }

        public void SearchLoaiKH(string field, string str)
        {
            string str2 = field + " LIKE '%" + str + "%'";
            this.cFrmData.RowFilter = str2;
            if (this.VSList.Rows.Count != 1)
            {
                this.VSList.Select(1, 0, 1, this.VSList.Cols.Count - 1);
            }
        }

        public void SetLanguage()
        {
            this.CmdAdd.Text = modGeneral.Tranlated(this.CmdAdd.Text, "");
            this.CmdEdit.Text = modGeneral.Tranlated(this.CmdEdit.Text, "");
            this.CmdDel.Text = modGeneral.Tranlated(this.CmdDel.Text, "");
            this.CmdSave.Text = modGeneral.Tranlated(this.CmdSave.Text, "");
            this.CmdUnsave.Text = modGeneral.Tranlated(this.CmdUnsave.Text, "");
            this.CmdPrint.Text = modGeneral.Tranlated(this.CmdPrint.Text, "");
            this.CmdHelp.Text = modGeneral.Tranlated(this.CmdHelp.Text, "");
            this.CmdExit.Text = modGeneral.Tranlated(this.CmdExit.Text, "");
            this.Label1.Text = modGeneral.Tranlated(this.Label1.Text, "");
            this.Label2.Text = modGeneral.Tranlated(this.Label2.Text, "");
            this.Label3.Text = modGeneral.Tranlated(this.Label3.Text, "");
            this.Label4.Text = modGeneral.Tranlated(this.Label4.Text, "");
            this.Label7.Text = modGeneral.Tranlated(this.Label7.Text, "");
            this.Label8.Text = modGeneral.Tranlated(this.Label8.Text, "");
            this.CKActive.Text = modGeneral.Tranlated(this.CKActive.Text, "");
            this.C1DockingTabPage1.Text = modGeneral.Tranlated(this.C1DockingTabPage1.Text, "");
            this.C1DockingTabPage2.Text = modGeneral.Tranlated(this.C1DockingTabPage1.Text, "");
        }

        public void SetEvents()
        {
            this._CmdAdd.Click += this.CmdAdd_Click;
            this._CmdDel.Click += this.CmdDel_Click;
            this._CmdEdit.Click += this.CmdEdit_Click;
            this._CmdExit.Click += this.CmdExit_Click;
            this._CmdHelp.Click += this.CmdHelp_Click;
            this._CmdPrint.Click += this.CmdPrint_Click;
            this._CmdSave.Click += this.CmdSave_Click;
            this._CmdUnsave.Click += this.CmdUnsave_Click;
            this._TxtMa.KeyPress += this.TxtMa_KeyPress;
            this._TxtSearchCode.TextChanged += this.TxtSearchCode_TextChanged;
            this._TxtSearchName.TextChanged += this.TxtSearchName_TextChanged;
            this._VSList.RowColChange += this.VSList_RowColChange;

        }

        public void ShowData(string pKhoa)
        {
            clsDMLoaiKhachHang objDMLoaiKH = this.objDMLoaiKH;
            objDMLoaiKH.Load(pKhoa);
            this.cFrmKhoa = objDMLoaiKH.Khoa;
            this.TxtMa.Text = objDMLoaiKH.Ma.Trim();
            this.TxtTenViet.Text = objDMLoaiKH.TenViet.Trim();
            this.TxtTenAnh.Text = objDMLoaiKH.TenAnh.Trim();
            this.TxtDienGiai.Text = objDMLoaiKH.DienGiai.Trim();
            if (objDMLoaiKH.Active == 1)
            {
                this.CKActive.CheckState = CheckState.Checked;
            }
            else
            {
                this.CKActive.CheckState = CheckState.Unchecked;
            }
            objDMLoaiKH = null;
        }

        private void TxtMa_KeyPress(object sender, KeyPressEventArgs e)
        {
            e.KeyChar = Conversions.ToChar(e.KeyChar.ToString().ToUpper());
        }

        private void TxtSearchCode_TextChanged(object sender, EventArgs e)
        {
            this.SearchLoaiKH("Ma", this.TxtSearchCode.Text);
        }

        private void TxtSearchName_TextChanged(object sender, EventArgs e)
        {
            this.SearchLoaiKH("Ten", this.TxtSearchName.Text);
        }

        private void VSList_RowColChange(object sender, EventArgs e)
        {
            if ((this.VSList.Rows.Count != 1) && (this.VSList.Row > 0))
            {
                this.ShowData(Conversions.ToString(this.VSList[this.VSList.Row, 0]));
            }
        }

        internal virtual C1DockingTab C1DockingTab1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab1 = value;
            }
        }

        internal virtual C1DockingTab C1DockingTab2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTab2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTab2 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage1 = value;
            }
        }

        internal virtual C1DockingTabPage C1DockingTabPage2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._C1DockingTabPage2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._C1DockingTabPage2 = value;
            }
        }

        internal virtual CheckBox CKActive
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CKActive;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CKActive = value;
            }
        }

        internal virtual ToolStripButton CmdAdd
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdAdd;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdAdd_Click);
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click -= handler;
                }
                this._CmdAdd = value;
                if (this._CmdAdd != null)
                {
                    this._CmdAdd.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdDel
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdDel;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdDel_Click);
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click -= handler;
                }
                this._CmdDel = value;
                if (this._CmdDel != null)
                {
                    this._CmdDel.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdEdit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdEdit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdEdit_Click);
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click -= handler;
                }
                this._CmdEdit = value;
                if (this._CmdEdit != null)
                {
                    this._CmdEdit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdExit
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdExit;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdExit_Click);
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click -= handler;
                }
                this._CmdExit = value;
                if (this._CmdExit != null)
                {
                    this._CmdExit.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdFind
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdFind;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._CmdFind = value;
            }
        }

        internal virtual ToolStripButton CmdHelp
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdHelp;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdHelp_Click);
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click -= handler;
                }
                this._CmdHelp = value;
                if (this._CmdHelp != null)
                {
                    this._CmdHelp.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdPrint
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdPrint;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdPrint_Click);
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click -= handler;
                }
                this._CmdPrint = value;
                if (this._CmdPrint != null)
                {
                    this._CmdPrint.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdSave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdSave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdSave_Click);
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click -= handler;
                }
                this._CmdSave = value;
                if (this._CmdSave != null)
                {
                    this._CmdSave.Click += handler;
                }
            }
        }

        internal virtual ToolStripButton CmdUnsave
        {
            [DebuggerNonUserCode]
            get
            {
                return this._CmdUnsave;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.CmdUnsave_Click);
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click -= handler;
                }
                this._CmdUnsave = value;
                if (this._CmdUnsave != null)
                {
                    this._CmdUnsave.Click += handler;
                }
            }
        }

        public bool EnableControl
        {
            get
            {
                return this.mEnableControl;
            }
            set
            {
                this.mEnableControl = value;
                this.TxtMa.ReadOnly = !value;
                this.TxtTenViet.ReadOnly = !value;
                this.CmdAdd.Enabled = !value & this.mAllowAdd;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value & this.mAllowDel;
                this.TxtTenAnh.ReadOnly = !value;
                this.TxtDienGiai.ReadOnly = !value;
                this.CKActive.Enabled = value;
                this.VSList.Enabled = !value;
                this.TxtSearchCode.Enabled = !value;
                this.TxtSearchName.Enabled = !value;
                this.CmdAdd.Enabled = !value & this.mAllowEdit;
                this.CmdEdit.Enabled = !value & this.mAllowEdit;
                this.CmdDel.Enabled = !value;
                this.CmdSave.Enabled = value;
                this.CmdUnsave.Enabled = value;
                this.CmdPrint.Enabled = !value;
                this.CmdExit.Enabled = !value;
            }
        }

        internal virtual Label Label1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label1 = value;
            }
        }

        internal virtual Label Label2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label2 = value;
            }
        }

        internal virtual Label Label3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label3 = value;
            }
        }

        internal virtual Label Label4
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label4;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label4 = value;
            }
        }

        internal virtual Label Label7
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label7;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label7 = value;
            }
        }

        internal virtual Label Label8
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Label8;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Label8 = value;
            }
        }

        internal virtual Panel Panel1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._Panel1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._Panel1 = value;
            }
        }

        internal virtual ToolStrip ToolStrip1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStrip1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStrip1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripButton1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripButton1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripButton1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator1
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator1;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator1 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator2
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator2;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator2 = value;
            }
        }

        internal virtual ToolStripSeparator ToolStripSeparator3
        {
            [DebuggerNonUserCode]
            get
            {
                return this._ToolStripSeparator3;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._ToolStripSeparator3 = value;
            }
        }

        internal virtual TextBox TxtDienGiai
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtDienGiai;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtDienGiai = value;
            }
        }

        internal virtual TextBox TxtMa
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtMa;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                System.Windows.Forms.KeyPressEventHandler handler = new System.Windows.Forms.KeyPressEventHandler(this.TxtMa_KeyPress);
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress -= handler;
                }
                this._TxtMa = value;
                if (this._TxtMa != null)
                {
                    this._TxtMa.KeyPress += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchCode
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchCode;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchCode_TextChanged);
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged -= handler;
                }
                this._TxtSearchCode = value;
                if (this._TxtSearchCode != null)
                {
                    this._TxtSearchCode.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtSearchName
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtSearchName;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.TxtSearchName_TextChanged);
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged -= handler;
                }
                this._TxtSearchName = value;
                if (this._TxtSearchName != null)
                {
                    this._TxtSearchName.TextChanged += handler;
                }
            }
        }

        internal virtual TextBox TxtTenAnh
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenAnh;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenAnh = value;
            }
        }

        internal virtual TextBox TxtTenViet
        {
            [DebuggerNonUserCode]
            get
            {
                return this._TxtTenViet;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                this._TxtTenViet = value;
            }
        }

        internal virtual C1.Win.C1FlexGrid.C1FlexGrid VSList
        {
            [DebuggerNonUserCode]
            get
            {
                return this._VSList;
            }
            [MethodImpl(MethodImplOptions.Synchronized), DebuggerNonUserCode]
            set
            {
                EventHandler handler = new EventHandler(this.VSList_RowColChange);
                if (this._VSList != null)
                {
                    this._VSList.RowColChange -= handler;
                }
                this._VSList = value;
                if (this._VSList != null)
                {
                    this._VSList.RowColChange += handler;
                }
            }
        }        
    }
}

